package per.srp.demo.carLink.entity;

public class CarCommand {
    private String command;
    private int time;
    private String other;

    //给jsonobject用
    private CarCommand(){}

    public CarCommand(String command, int time, String other) {
        this.command = command;
        this.time = time;
        this.other = other;
    }

    public String getCommand() {
        return command;
    }

    public void setCommand(String command) {
        this.command = command;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public String getOther() {
        return other;
    }

    public void setOther(String other) {
        this.other = other;
    }

    public String toJson(){
        return "{\"command\":\""+command+"\""+
                ",\"time\":"+time+
                ",\"other\":\""+other+"\"}";
    }
}
